package demo2;

//import java.util.Date;
import java.util.*;
import java.sql.*;

//import static java.lang.Math.pow;

import static java.lang.Math.*;

public class Test {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        //double result = Math.sqrt(pow(a,2) + pow(b,2));
        double result = sqrt(pow(a,2) + pow(b,2));
        System.out.println(result);
    }
    public static void main2(String[] args) {
        //Date date = new Date();
        java.util.Date date = new java.util.Date();
        java.sql.Date date1 = new java.sql.Date(2024,10,20);
    }

    public static void main1(String[] args) {
        Student student = new Student();
        student.setName("小明");
        System.out.println(student.getName());

        System.out.println("========");

        student.age = 25;
        student.gender = "男";
        student.print();
    }

}
